package com.jinzecloud.blog.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.jinzecloud.blog.bean.User;
import com.jinzecloud.blog.utils.Page;

import java.util.Map;

public interface UserService extends IService<User> {

    void add(User user);

    void alter(User user);

    void delete(Long[] id);

    User byId(Long id);

    Page<User> listUser(Map<String, Object> params);

    void updateStatus(User user);

    void updatePassword(User user);

    Map login(User user);

    boolean checkName(String username);
}
